package org.git.movie.util;

import lombok.Data;

/**
 * @author 嘻嘻
 * @date 2020/7/13 0013 16:06
 * @version: V1.0
 */
@Data
public class BaseResponse<T> {

    //错误类型
    private String status;
    //展示消息
    private String message;
    //返回结果
    private T data;

    public BaseResponse(String status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public BaseResponse(T data) {
        this(ResponseEnum.SUCCESS.getCode(), ResponseEnum.SUCCESS.getMessage(), data);
    }
}
